package com.study.springcloud.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author raoluping
 * @Date 2017/10/26 13:59
 * @Description
 */
@FeignClient(value = "service-simple-provide", fallback = SchedualRemoteInterfaceHystric.class)
public interface IRemoteInterface {
  // 这里的url就跟provide提供的接口的url保持一致
  @RequestMapping("/sayHi")
  // value 跟provide提供的接口的参数保持一致
  String hello(@RequestParam(value = "name") String name);
}
